package com.study.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Award {
    private Integer id;
    @NotNull(message = "奖品名不能为空")
    private String award;
    @Range(max = 100, min = 1, message = "分数范围在1-100内")
    private Integer price;
    private String status;
    private Integer userId;
}
